package com.example.demo2022.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo2022.entity.Menu;
import com.example.demo2022.mapper.MenuMapper;
import com.example.demo2022.service.IMenuService;
import org.springframework.stereotype.Service;

import java.util.Set;

/************************************
 * @PACKAGE : com.example.demo2022.service.impl
 * @Author    :  叫我老伯
 * @Date    : 2022/5/31 16:48
 * @Desc    :
 ***********************************/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
    @Override
    public Set<String> listUrlByUserId(Long id) {
        //userId-user_role => role_menu => url
        return this.baseMapper.listUrlByUserId(id);
    }
}
